package com.github.wenzi.dubbo;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author zhao
 */
public class HelloServiceTest {
    public static void main(String[] args) {
        try {
            AnnotationConfigApplicationContext app = new AnnotationConfigApplicationContext(ProviderConfiguration.class);
            app.start();
            System.in.read();
        }catch (Exception e){
            e.printStackTrace();
        }
    }

    @Configuration
    @EnableDubbo(scanBasePackages = "com.github.wenzi.dubbo")
    @PropertySource("classpath:/dubbo.properties")
    static class ProviderConfiguration {
    }
}
